package com.ruoyi.web.controller.comlbs;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.request.realtimevideo.HistoryVideoParam;
import com.ruoyi.system.service.IRealtimeVideoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述 实时视频Controller
 * 作者 ZhangPing
 * 创建时间 2023/8/21 16:35
 */
@RestController
@RequestMapping("/comlbs/realtimeVideo")
public class RealtimeVideoController extends BaseController {

    @Autowired
    private IRealtimeVideoService realtimeVideoService;

    @ApiOperation("服务器历史视频列表")
    @PostMapping("/serverHistoryVideo/list")
    public AjaxResult serverHistoryList(@Validated @RequestBody HistoryVideoParam param){
        return success(realtimeVideoService.serverHistoryList(param));
    }

    @ApiOperation("设备历史视频列表")
    @PostMapping("/deviceHistoryVideo/list")
    public AjaxResult deviceHistoryList(@Validated @RequestBody HistoryVideoParam param){
        return success(realtimeVideoService.deviceHistoryList(param));
    }

}
